package com.bhms.module.users.org.action;

import java.util.ArrayList;
import java.util.List;

import com.bhms.module.users.org.mapper.Organization;
import com.bhms.module.users.org.service.OrganizationService;
import com.sunshulin.common.action.GeneralAction;

/**
 * 系统业务组织机构管理action
 * 
 * @author 孙树林
 * 
 */
public class OrganizationAction extends GeneralAction {

	private static final long serialVersionUID = -5863047103742395447L;

	private OrganizationService organizationService;

	private Organization organizations = new Organization();

	private List<Organization> organizationList = new ArrayList<Organization>();

	/**
	 * 查询，显示系统业务组织机构列表
	 * 
	 * @return
	 */
	public String organizationList() {
		page(organizations);
		organizationList = organizationService.searchOrganization(organizations);
		return SUCCESS;
	}

	public List<Organization> getOrganizationList() {
		return organizationList;
	}

	public void setOrganizationList(List<Organization> organizationList) {
		this.organizationList = organizationList;
	}

	public void setOrganizationService(OrganizationService organizationService) {
		this.organizationService = organizationService;
	}

	public Organization getOrganizations() {
		return organizations;
	}

	public void setOrganizations(Organization organizations) {
		this.organizations = organizations;
	}
}
